package com.hhkj.study.admin.resource.service.extend;

import com.hhkj.study.admin.resource.entity.ResourceCourseVideo;
import com.hhkj.study.admin.resource.model.podo.ResourceCourseVideoDo;
import com.hhkj.study.admin.resource.model.podo.ResourceCourseVideoPo;
import com.ruoyi.common.base.biz.service.extend.BaseExtendService;

import java.util.Collection;
import java.util.List;

/**
*
* @author SERVER
* @since 2024-09-06
*/

public interface ResourceCourseVideoExtendService extends BaseExtendService<ResourceCourseVideo, ResourceCourseVideoDo, ResourceCourseVideoPo> {

    /**
     * 根据名称查询视频
     * @param name
     * @param courseType
     * @return
     */
    ResourceCourseVideo getByNameCourseType(String name, Long courseType);

    /**
     * 批量保存 保证视频名称不重复
     * @param resourceCourseVideoList
     * @return
     */
    boolean saveBatchVideoNameUnique(List<ResourceCourseVideo> resourceCourseVideoList);

    /**
     * 根据id集合查询
     * @param idList
     * @return
     */
    List<ResourceCourseVideoPo> listByIdList(Collection<Long> idList);
}